<extend name="Public/base" />

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>用户列表</h2>
    </div>

    <div class="cf">
        <form action="{:U('Manage/user_search')}" id="filter" method="post">
            <div style="width:20%;height:20px;float:left;">
                <span>用户昵称：</span><input type="text" name="nickname" value="{$nickname}" style="border:1px solid #ccc;border-radius:5px;height:26px;line-height:26px;"/>
            </div>
            <div style="width:30%;height:25px;float:left;">
                <button tyle="submit" class="btn" style="border-radius:5px;">查 询</button>
            </div>
        </form>
    </div>

    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
                <th class="">UID</th>
                <th class="">昵称</th>
                <th class="">性别</th>
                <th class="">手机号</th>
                <th class="">等级</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                    <tr>
                        <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}" /></td>
                        <td>{$vo.id} </td>
                        <td>{$vo.nickname}</td>
                        <td><if condition="$vo.sex eq 1">男<else/>女</if></td>
                        <td>{$vo.mobile}</td>
                        <td>{$vo.user_level}</td>
                        <td>
                            <a href="{:U('user_detail',array('id'=>$vo['id']))}">详情</a>
                            <a href="{:U('recharge_search',array('id'=>$vo['id']))}">充值记录</a>
                            <a href="{:U('use_record_search',array('id'=>$vo['id']))}">消费记录</a>
                            <a href="{:U('sendgift_search',array('id'=>$vo['id']))}">礼物记录</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">

        //回车搜索
        $(".search-input").keyup(function(e){
            if(e.keyCode === 13){
                $("#search").click();
                return false;
            }
        });


        //导航高亮
        highlight_subnav("{:U('Manage/suthentic')}");
        //获取市

    </script>
</block>
